id: task-84 title: Add -ac flag for acceptance criteria in task create/edit status: Done assignee:
- '@claude' created_date: '2025-06-18' updated_date: '2025-06-19' labels:
- enhancement
- cli dependencies: []
Description
Add acceptance criteria flag support to task creation and editing commands. Include -ac flag and consider full --acceptance-criteria command option.
Acceptance Criteria
- [x] Add -ac flag to
backlog task createcommand - [x] Add -ac flag to
backlog task editcommand - [x] Consider implementing full --acceptance-criteria flag as alternative
- [x] Acceptance criteria should be added as checkbox list in markdown
- [x] Preserve existing -d (description) functionality
- [x] Update help text for both create and edit commands
- [x] Add tests for acceptance criteria flag functionality
- [x] Handle multiple acceptance criteria items (comma-separated or multiple flags)
Implementation Notes
- Implemented both
--acand--acceptance-criteriaflags for both create and edit commands - Used Commander.js convention where short flags must be single character, so used
--acas a long option - Acceptance criteria are comma-separated and automatically formatted as markdown checkboxes
- The
updateTaskAcceptanceCriteriafunction handles adding or replacing criteria in the task description - Added comprehensive test coverage including edge cases and both flags
- The feature supports multiple criteria in a single flag value (comma-separated)